package com.happy.cat.project.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;


/**
 * 用户赠送礼物日志对象 user_gift_detail
 * 
 * @author verne
 * @date 2020-08-15
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName(autoResultMap = true )
@ApiModel(value="用户赠送礼物日志对象", description="用户赠送礼物日志对象数据")
public class UserGiftDetail implements Serializable {

private static final long serialVersionUID=1L;


    /** ID */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 赠送礼物的人id */
    @ApiModelProperty(value = "赠送礼物的人id")
    private Long giveId;

    /** 接受礼物的人 */
    @ApiModelProperty(value = "接受礼物的人")
    private Long receiverId;

    /** 礼物id */
    @ApiModelProperty(value = "礼物id")
    private Long giftId;

    @ApiModelProperty(value = "礼物数量")
    private Integer giftNumber;

    /** 赠送时间 */
    @ApiModelProperty(value = "赠送时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
